package com.client.one.web;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by CHUMI on 2018/1/31.
 */
@RestController
@RefreshScope
/**
         * Description: 测试远程配置文件   https://gitee.com/null_848_9244/SpringcloudConfig.git/respo/service-hi-dev.yml
         */
public class TestController {
    @Value("${foo}")
    String foo;
    @RequestMapping(value = "/hifoo")
    public String hi(){
        return foo;
    }
}
